<?php

include_once("modules/connection.php");

function get_select_list($prepared, $model) {
    $prepared->execute();
    while ($result = $prepared->fetch()) {
        echo "<option value=\"" . $result['model'] . "\"";
        if ($result['model'] == $model)
            echo " selected=\"selected\"";
        echo ">" . $result['model'] . "</option>";
    }
}

?>